/*
 * CS_REQ_WEATHER_INFO.cpp
 *
 *  Created on: 2013. 11. 29.
 *      Author: mega
 */

#include "../../User.h"
#include "../../Command.h"

#include "../../NResource/Static.h"

namespace ProjectZ { namespace NCommand {

void Command::CS_REQ_WEATHER_INFO(User * pUser, ::Network::Packet * pPacket)
{
	PREPARE_PACKET;

	::Network::Packet * pAck = ::Network::GETPACKETPOOL()->SEND_NEW();
	*pAck << static_cast<uint8_t>(NResource::Static::InstancePtr()->GetWeatherResource()->GetWeather());
	pAck->MakePacket(CMD_SC_REQ_WEATHER_INFO);
	pUser->Send(pAck);
}

} /*NCommand*/ } /*ProjectZ*/
